package vip.finance.makemoney.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 调度
 * </p>
 *
 * @author yangbin
 * @since 2023-02-21
 */
@Getter
@Setter
@TableName("schedule")
public class Schedule implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 调度
     */
    @TableField("name")
    private String name;

    /**
     * 代码方法
     */
    @TableField("method")
    private String method;

    /**
     * 上次运行id
     */
    @TableField("last_task_id")
    private Integer lastTaskId;

    /**
     * 上次运行时间
     */
    @TableField("last_run_time")
    private LocalDateTime lastRunTime;

    /**
     * 创建时间
     */
    @TableField("create_time")
    private LocalDateTime createTime;
}
